Skip to content

Fully support Swift 6 and drop Swift 5 compatibility - #122

Merged
417-72KI merged 13 commits into
mainfrom
swift-6
Oct 27, 2026
Merged

417-72KI merged 13 commits into
mainfrom
swift-6

Conversation

@417-72KI

Copy link
Copy Markdown
Owner

No description provided.

`The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions`
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Messages
📖 All tests passed successfully.

Generated by 🚫 Danger Swift against 9353fb2

@417-72KI
417-72KI force-pushed the swift-6 branch 3 times, most recently from 0583e7f to f292c30 Compare October 25, 2026 16:29
… shared object file: No such file or directory`
@417-72KI
417-72KI marked this pull request as ready for review October 25, 2026 17:03
Copilot AI balanced review requested due to automatic review settings October 25, 2026 17:03
@417-72KI
417-72KI added this pull request to stack #127 October 25, 2026 17:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The consolidated workflow can skip failed-test reporting and bypass license checks for LICENSE-only pull requests.

2 open issues
What changed in this PR

This PR moves MultipartFormDataParser to Swift 6, requiring Swift 6.1 or later, and updates its tests and CI infrastructure.

Changes:

  • Enables Swift 6 language mode and explicit public imports.
  • Migrates tests to Swift Testing with asynchronous helpers and per-session network stubs.
  • Consolidates CI workflows and adds merged test-result reporting through Danger.
File Description
Tests/​MultipartFormDataParserTests/​MultipartFormDataParserTests.swift Migrates test cases to Swift Testing.
Tests/​MultipartFormDataParserTests/​_Util/​TestStub.swift Replaces global handlers with a response provider.
Tests/​MultipartFormDataParserTests/​_Util/​StubURLProtocol.swift Adds provider-based, per-session stubbing.
Tests/​MultipartFormDataParserTests/​_TestFunctions/​TestFunction_URLSession.swift Injects sessions into standalone helpers.
Tests/​MultipartFormDataParserTests/​_TestFunctions/​TestFunction_APIKit.swift Converts APIKit helpers to asynchronous testing.
Tests/​MultipartFormDataParserTests/​_TestFunctions/​TestFunction_Alamofire.swift Consolidates Alamofire helpers around async uploads.
Tests/​MultipartFormDataParserTests/​_Extension/​XCTest+Activity.swift Removes the XCTest activity helper.
Tests/​MultipartFormDataParserTests/​_Extension/​URLSession+Linux.swift Makes Linux helper methods internal.
Sources/​MultipartFormDataParser/​MultipartFormData.swift Makes Foundation imports public.
Sources/​MultipartFormDataParser/​Extensions/​Data+Util.swift Uses Self for the result array type.
Sources/​MultipartFormDataParser/​Error.swift Makes the Foundation import public.
Package.swift Requires Swift 6.1 and updates language settings and dependencies.
DangerfileExtensions/​TestResult.swift Adds models for exported test results.
Dangerfile.swift Reports test-result status through Danger.
.swiftlint.yml Adjusts disabled lint rules.
.github/​workflows/​test.yml Removes the separate test workflow.
.github/​workflows/​pr.yml Combines testing, result merging, and Danger.
.github/​workflows/​danger.yml Removes the separate Danger workflow.
.github/​matrix.yml Defines runner, Xcode, and Swift combinations.
.github/​matrix.json Removes the previous matrix definition.
.github/​create-matrix.sh Generates workflow matrices from YAML.
.github/​CODEOWNERS Adds repository-wide code ownership.

Review effort: Balanced

Comment thread .github/workflows/pr.yml Resolved
Comment thread .github/workflows/pr.yml Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The toolchain, test-framework, and CI migration needs cross-platform validation and still has an unresolved artifact-download failure that blocks Danger.

1 open issue
2 resolved since last review

Review effort: Balanced

Comment thread .github/workflows/pr.yml Resolved
#122 (comment)

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@417-72KI
417-72KI merged commit 5579d8b into main Oct 27, 2026
37 of 39 checks passed
@417-72KI
417-72KI deleted the swift-6 branch October 27, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants